/* 全局字体设置 */
@import url('https://fonts.googleapis.com/css2?family=SF+Mono&display=block');

:root {
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell;
}

body {
  font-family: var(--font-system), sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #1a1a1a; /* 深色背景 */
}

/* 等宽字体用于时间显示 */
pre, code, .monospace {
  font-family: 'SF Mono', Menlo, monospace;
}

/* 添加本地字体回退 */
@font-face {
  font-family: 'SF Mono Fallback';
  src: local('Menlo'), local('Consolas'), local('Monaco');
  unicode-range: U+0000-00FF;
}

.monospace {
  font-family: 'SF Mono', 'SF Mono Fallback', Menlo, monospace;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.player-container {
  flex: 1;
  position: relative;
  background-color: #000;
  width: 100vw;
  height: calc(100vh - 30px); /* 留出菜单栏空间 */
}

.media-player-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.controls-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
}

/* 彻底隐藏所有原生视频控件 */
video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

/* 添加macOS风格滚动条 */
::-webkit-scrollbar {
  width: 8px;
  background-color: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 彻底隐藏所有浏览器原生视频控件 */
video::-webkit-media-controls-panel {
  display: none !important;
}

video::-webkit-media-controls-play-button {
  display: none !important;
}

video::-webkit-media-controls-timeline {
  display: none !important;
} 